<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'formValidate.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <!-- 公用标签 -->
    <%@ include file="/common/inc.inc"%> 
    <script type="text/javascript" src="${ctx}/js/message_cn.js"></script>
    
  </head>
  
  <body>
      <form id="regForm" name="regForm" > 
		<input type="submit" value="测试validion插件" onclick="test()"/> <!-- onclick可以没有，但可以用来做前期的准备工作 -->
		<div>用户名：<input type="text" id="userName" name="userName"/>
		<div>密码：<input type="password" id="password" name="password"/>
		<div>确认密码：<input type="password" id="repassword" name="repassword"/>
	</form>
	<script type="text/javascript">
	function test()
	{
	     jAlert("onclick");
	}
	 // 注册
	function register()
	{
		jAlert("submitHandler");
	}
	</script>
  </body>
</html>
